package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BClientTag;
import com.youhome.service.model.BTag;
import com.youhome.service.model.Principal;

import java.util.List;

/**
 * Created by chen365 on 2017/10/25.
 */
public interface BTagService {

    int create(Long counselorId, String tag) throws Exception;

    int update(Long tagId, String tag) throws Exception;

    PageInfo<BTag> selectByBean(Integer page, BTag bTag) throws Exception;

    int selectIsExist(Long clientId, String tag);

    int selectCount(Long counselorId);

    int delete(Long tagId) throws Exception;

    int deleteByBean(BClientTag record);

    BTag selectByPrimaryKey(Long tagId) throws Exception;

    int make(BClientTag clientTag) throws Exception;

    int make(Long clientId, String tagIds) throws Exception;

    Boolean isExistMake(BClientTag clientTag) throws Exception;

    List<BTag> selectAll(BTag bTag);

    List<BTag> selectByClientId(Long clientId);

    List<BTag> selectAllTag(Long clientId) throws CustomException;

    void deleteByTagId(Long tagId) throws CustomException;

    void makeTag(Long clientId, Long tagId) throws CustomException;

    List<BTag> selectAllTag(Principal principal) throws CustomException;

    BTag createTag(Principal principal,String tag) throws CustomException;
}
